home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
253_01
/
forloop.c
< prev
next >
Wrap
Text File
|
1990-02-13
|
455b
|
24 lines
/* Chapter 3 - Program 3 */
/* This is an example of a for loop */
main()
{
int index;
for(index = 0;index < 6;index = index + 1)
printf("The value of the index is %d\n",index);
}
/* Result of execution
The value of the index is 0
The value of the index is 1
The value of the index is 2
The value of the index is 3
The value of the index is 4
The value of the index is 5
*/